package com.zzyl;

import com.zzyl.common.utils.UserThreadLocal;
import com.zzyl.framework.interceptor.MyMetaObjectHandler;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @author JiangQH
 * @date 2025-08-28 10:49
 */
@SpringBootTest
public class Demo {
    @Autowired
    private MyMetaObjectHandler handler;
    @Test
    public void test(){
        Long loginUserId = handler.getLoginUserId();
        System.out.println("loginUserId = " + loginUserId);
        Long l = UserThreadLocal.get();
        System.out.println("l = " + l);
    }
}
